.game-container {
    max-width: 100%;
    margin: 0px auto;
    padding: 10px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    border: 3px solid #4CAF50;
    background-color: #e8f5e9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 100%;
    height: auto;
}

.game-controls {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#startButtonContainer, #touchControls {
    width: 100%;
    display: flex;
    justify-content: center;
}

#difficulty {
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 5px;
    border: 2px solid #4CAF50;
    background-color: transparent;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

#startButton {
    margin-left: 15px;
}

.game-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.game-info p {
    margin: 5px 0;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.game-rules {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left;
}

.game-rules h3 {
    color: #4CAF50;
    margin-top: 0;
}

.game-rules p {
    margin: 8px 0;
    line-height: 1.4;
}

h1 {
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

body {
    background-color: #e0f7fa;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* 响应式设计 */
@media (max-width: 800px) {
    .game-container {
        max-width: 100%;
        padding: 10px;
        margin: 0px auto;
    }

    canvas {
        width: 100%;
        height: auto;
        max-height: 400px;
    }

    .game-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .game-info p {
        margin: 3px 0;
        font-size: 16px;
    }

    h1 {
        font-size: 24px;
    }

    #difficulty {
        font-size: 16px;
        padding: 8px 12px;
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }

    #startButton {
        font-size: 14px;
        padding: 8px 12px;
    }
}